To enable Developer Mode, first choose the device as the run destination and click the Run button. If a dialog appears stating that the device must opt into ...
You should be able to disable developer mode by entering the following command in the Terminal app (which is built-into macOS): DevToolsSecurity -disable.